<?php
	header("content-type:text/html;charset=utf-8");

	$user = $_GET["inpUser"];
	$pwd  = $_GET["inpPwd"];
	
	
	$arr = array(
	array("user"=>"15629669551","pwd"=>"123456"),
	array("user"=>"12422312133","pwd"=>"111111"),
	array("user"=>"12332131333","pwd"=>"223133"),
	array("user"=>"23441233113","pwd"=>"344414")
	);
	$flag =false;
	
	for( $i=0;$i<count($arr);$i++){
		if($arr[$i]["user"]===$user&&$arr[$i]["pwd"]===$pwd){
			$flag=true;
			break;
		}
	}
	if( $flag ){
		echo"登录成功了<br>";
	}else{
		echo"登录失败,不存在的用户名<br>";
	}
?>